package com.example.cdctest.service.impl;

import com.example.cdctest.mapper.ParticipantsMapper;
import com.example.cdctest.pojo.Participants;
import com.example.cdctest.service.ParticipantsService;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional(rollbackFor = Exception.class)
public class ParticipantsServiceImpl implements ParticipantsService {

    @Resource
    private ParticipantsMapper participantsMapper;

    //通过考试信息的id，查看该次选中的考试参与人
    @Override
    public List<Participants> selectSelectParticipants(Integer examinationId) {
        return participantsMapper.selectParticipants(examinationId);
    }

    //删除考试参与人信息
    @Override
    public void updateParticipants(Integer id) {
        participantsMapper.updateParticipantsById(id);
    }

    @Override
    public void insert(Participants object) {

    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public void update(Participants object) {

    }

    @Override
    public Participants findById(Integer id) {
        return null;
    }

    @Override
    public List<Participants> findAll() {
        return null;
    }

    @Override
    public PageInfo<Participants> findPage(int pageSize) {
        return null;
    }
}
